import requests
url='https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&rsv_idx=1&tn=baidu&wd=ip&fenlei=256&rsv_pq=a6f7eb8c00009459&rsv_t=c7a0nwHPNxEyDAglRT2SWRTZ4guqcnqlBtXbLl4yvkVWQ4JLK%2FnZ5h3lAQM&rqlang=cn&rsv_enter=1&rsv_dl=tb&rsv_sug3=3&rsv_sug1=2&rsv_sug7=100&rsv_sug2=0&rsv_btype=i&inputT=618&rsv_sug4=1271'
headers={
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'
}

page_text = requests.get(url=url,headers=headers,proxies={"http":"106.45.105.162"}).text

with open('ip.html','w',encoding='utf-8') as fp:
    fp.write(page_text)